package com.imu.purse.modules.app.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.imu.common.validator.group.UpdateGroup;
import com.imu.core.base.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@Table(name = "imu_identity")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class ImuUserIdentityEntity extends BaseEntity{

	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	/**用户ID*/
	@Column(name = "user_id")
	private Long userId;
	
	/**
	 * 我的密钥
	 */
	@Column(name = "SECRET_KEY")
	private String secretKey;
	
	
	/**
	 * 备注
	 */
	@Column(name = "REMARK")
	private String remark;
	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_TIME")
	private Timestamp createTime;
	
	/**
	 * 更新时间
	 */
	@Column(name = "UPDATE_TIME")
	private Timestamp updateTime;
}
